package com.minivision.sdktestdemo.model;

/**
 * Created by devtang on 2016/4/8.
 */
public class SingerProvider extends GroupProvider {
    private static SingerProvider sSingerProvider;

    public static SingerProvider getInstance(MusicProvider provider) {
        if (sSingerProvider == null) {
            synchronized (SingerProvider.class) {
                if (sSingerProvider == null) {
                    sSingerProvider = new SingerProvider(provider);
                }
            }
        }
        return sSingerProvider;
    }

    public static void release() {
        sSingerProvider = null;
    }

    private SingerProvider(MusicProvider provider) {
        super(provider);
    }

    @Override
    public String getKey(MusicProvider provider, int position) {
        return provider.get(position).getmSingerName();
    }
}
